﻿using System;
using System.Collections.Generic;

namespace TLang.Ast
{
    using Values;

    public class VectorLiteral : Node
    {

        public List<Node> elements;


        public VectorLiteral(List<Node> elements, String file, int start, int end, int line, int col) : base(file, start, end, line, col)
        {
            this.elements = elements;
        }

        public override Value Interp(Scope s)
        {
            return new Vector(InterpList(elements, s));
        }

        public override Value Typecheck(Scope s)
        {
            return new Vector(TypecheckList(elements, s));
        }
    }
}
